package com.jvyou.app.ds.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.jvyou.app.common.domain.model.Result;
import com.jvyou.app.ds.service.SparkMessageService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 橘柚
 * @since 2024/12/20 12:35
 */
@Slf4j
@RestController()
@RequestMapping("/spark-message")
@RequiredArgsConstructor
public class SparkMessageController {

    private final SparkMessageService sparkMessageService;

    @GetMapping("/subjectOneChoice")
    @SaIgnore
    public Result<String> subjectOneChoice() {
        log.info("subjectOneChoice");
        return Result.success(sparkMessageService.subjectOneChoice());
    }

}
